calculate percentage in mind